﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="S_SaleTicket.aspx.cs" Inherits="JTicket.UI.S_SaleTicket" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="Style/style.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery-cookie.js" type="text/javascript"></script>
    <script src="Scripts/jquery-dialog.js" type="text/javascript"></script>
    <script src="Scripts/JSCommon.js" type="text/javascript"></script>
    <script src="Scripts/JSTitle.js" type="text/javascript"></script>
    <title></title>
</head>
<body oncontextmenu="return  false;" onselect=" document.selection.empty();" onclick="showoff();">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="sm" runat="server">
        <Services>
            <asp:ServiceReference InlineScript="true" Path="~/Service/JT_TicketOperateSvc.asmx" />
        </Services>
    </asp:ScriptManager>
    <script type="text/javascript">
        $(document).ready(
    function () {
        JTicket.UI.Service.JT_TicketOperateSvc.GetSQL(
        function Success(Result) {
            try {
                document.all("form1").FastReport.AddConnectionStr(Result);
            } catch (e) {
                alert('客户端打印控件(SevReport.dll)没有安装,请在帮助中心中下载客户端打印控件后安装。');
                window.location.href = "JT_MainPanel.aspx";
            }

        },
        function Fail() {
            alert("数据库连接失败"); $("#SQLHide").val("");
        });
    });                //--关闭IE窗体事件
        function window.onunload() {
            try {
                tt = document.all("form1").FastReport.CloseADOConnect();
                tt = document.all("form1").FastReport.CloseProc();
                tt = document.all("form1").FastReport.FreeReport();
            }
            catch (e) {
            }
        }
    </script>
    <div id="mlay" style="position: absolute; display: none; cursor: default; z-index: 1200"
        onclick="return false;">
    </div>
    <p id="P1" style="filter: alpha(opacity=0); -moz-opacity: 0.3; opacity: 0.3; background-color: #fff;
        width: 100%; height: 100%; z-index: 1000; position: absolute; left: 0; top: 0;
        display: none; overflow: hidden; text-align: center; color: Red; font-weight: bold">
    </p>
    <p id="checkFlag" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
        background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
        left: 0; top: 0; display: none; overflow: hidden; text-align: center; color: Red;
        font-weight: bold; vertical-align: middle">
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        数据处理中，请稍后...<br />
        <img id="aa" alt="" src="Images/Loading-leng.gif" />
    </p>
    <div style="text-align: center; width: 100%">
        <input id="TitleCode" type="hidden" runat="server" value="" />
        <input id="SubCode" type="hidden" runat="server" value="" />
        <input id="ThCode" type="hidden" runat="server" value="" />
        <input id="TaoCode" type="hidden" runat="server" value="" />
        <input id="TaoCount" type="hidden" value="" />
        <div style="width: 100%; margin-top: 5px; text-align: center;">
            <div style="width: 100%; height: 60px; background-color: #ece9d8; text-align: center;
                float: left">
                <div style="float: left; margin-top: 5px; width: 250px;">
                    票数：<input value="0" id="txtTicketCount" runat="server" style="font-weight: bold;
                        font-size: 18px; color: Red; width: 50px; height: 20px;" readonly="readonly" />
                    总金额：<input value="0.0" id="txtSumPrice" runat="server" style="font-weight: bold;
                        font-size: 18px; color: Red; width: 100px; height: 20px;" readonly="readonly" />
                </div>
                <div style="margin-top: 5px; width: 560px; float: left;" id="ss" runat="server">
                    <input id="Button1" type="button" class="submitMiniGreen" onmousemove="showBtnOver(this)"
                        onmouseout="showBtnOut(this)" value="选择分区" onclick="SelectArea();" runat="server"
                        style="width: 90px; height: 28px;" />
                    <input id="Button2" type="button" class="submitMiniGreen" onmousemove="showBtnOver(this)"
                        onclick="window.showModalDialog('JT_PerList.aspx','','location:No;status:No;help:No;dialogWidth:900px;dialogHeight:500px;scroll:no');"
                        onmouseout="showBtnOut(this)" value="选择演出" runat="server" style="width: 90px;
                        height: 28px;" />
                    <input id="BtnSale" type="button" class="submitMiniGreen" onmousemove="showBtnOver(this)"
                        onmouseout="showBtnOut(this)" value="销   售" runat="server" style="width: 90px;
                        height: 28px;" />
                    <input id="BtnYd" type="button" class="submitMiniGreen" onmousemove="showBtnOver(this)"
                        onmouseout="showBtnOut(this)" value="预   订" runat="server" style="width: 90px;
                        height: 28px;" />
                    <input id="BtnYl" type="button" class="submitMiniGreen" onmousemove="showBtnOver(this)"
                        onmouseout="showBtnOut(this)" value="预   留" runat="server" style="width: 90px;
                        height: 28px;" />
                    <input id="BtnTp" type="button" class="submitMiniGreen" onmousemove="showBtnOver(this)"
                        onmouseout="showBtnOut(this)" value="刷   新" onclick="Reflsh();" runat="server"
                        style="width: 90px; height: 28px;" />
                </div>
                <div id="Div1" style="float: left; width: 170px; text-align: center; margin-top: 10px;">
                    <img onclick="ChangLeft();" alt="左移" style="cursor: hand; width: 16px; height: 16px;"
                        src="Images/left_16x16.gif" />
                    <img onclick="ChangRight();" alt="右移" style="cursor: hand; width: 16px; height: 16px;"
                        src="Images/right_16x16.gif" />
                    <img onclick="ChangBig();" alt="放大" style="cursor: hand; width: 16px; height: 16px;"
                        src="Images/cb.jpg" />
                    <img onclick="ChangSmall();" alt="缩小" style="cursor: hand; width: 16px; height: 16px;"
                        src="Images/cs.jpg" />
                    <img onclick="ShowHideCow();" alt="显示/取消座位号" style="cursor: hand; width: 16px; height: 16px;"
                        src="Images/stop_16x16.gif" />
                    <img onclick="ShowHideTicketInfo();" alt="显示/隐藏票类信息" style="cursor: hand; width: 16px;
                        height: 16px;" src="Images/com41.gif" />
                </div>
                <div style="float: left; text-align: left; font-size: 14px; font-weight: bold; margin-top: 8px;
                    width: 100%;">
                    <img alt="位置" src="Images/bullet2.gif" />您当前所在分区：<span id="Yarea" runat="server" />
                    【<span id="sptitleinfo" runat="server" />】
                </div>
            </div>
            <!--座位图起-->
            <table style="width: 100%; height: 100%; border-width: 0px;" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="height: 830px;">
                        <div id="TicketInfo" style="background-color: #FFFEEE; width: 100%; margin-top: 10px;
                            height: 830px; width: 250px;">
                            <!--票类信息-->
                            <div id="TicketNameInfo">
                            </div>
                            <table cellpadding="0" cellspacing="0" class="S_table">
                                <tr>
                                    <td class="S_Td">
                                        <div style="background-color: #992c0a; width: 17px; height: 17px; float: left">
                                        </div>
                                    </td>
                                    <td>
                                        选定的座位
                                    </td>
                                </tr>
                                <tr>
                                    <td class="S_Td S_T">
                                        <div style="background-color: #a7900d; width: 17px; height: 17px; float: left">
                                        </div>
                                    </td>
                                    <td class="S_T">
                                        已预订
                                    </td>
                                </tr>
                                <tr>
                                    <td class="S_Td S_T">
                                        <div style="background-color: #3f420f; width: 17px; height: 17px; float: left">
                                        </div>
                                    </td>
                                    <td class="S_T">
                                        已预留
                                    </td>
                                </tr>
                                <tr>
                                    <td class="S_Td S_T">
                                        <div style="background-color: #676767; width: 17px; height: 17px; float: left">
                                        </div>
                                    </td>
                                    <td class="S_T">
                                        已销售
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <table cellpadding="0" cellspacing="0" class="S_table">
                                <tr>
                                    <td class="S_Td">
                                        <img alt="客户关系" style="width: 16px; height: 16px;" src="Images/User_Login_0_15.gif" />
                                    </td>
                                    <td>
                                        <strong>客户关系</strong>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="S_Td S_T">
                                        姓名
                                    </td>
                                    <td class="S_T">
                                        <input type="text" id="CustName" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="S_Td S_T">
                                        手机
                                    </td>
                                    <td class="S_T">
                                        <input type="text" id="CustTel" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="S_Td S_T">
                                        地址
                                    </td>
                                    <td class="S_T">
                                        <input type="text" id="CustAddress" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="S_Td S_T">
                                        单位
                                    </td>
                                    <td class="S_T">
                                        <input type="text" id="CustUnit" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="S_Td S_T">
                                        备注
                                    </td>
                                    <td class="S_T">
                                        <input type="text" id="CustRemake" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="S_Td S_T">
                                        &nbsp;
                                    </td>
                                    <td class="S_T">
                                        <input type="button" class="submitMiniGreen" value="提交" id="btnCustSumt" onclick="AddCustomer();" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                    <td style="width: 10px; height: 830px;">
                        &nbsp;
                    </td>
                    <td style="width: 100%">
                        <div style="width: 100%; background-color: White; margin-top: 10px; float: left;">
                            <div style="background-color: #990100; width: 100px; height: 20px; color: #FFFFFF;
                                margin: 0 auto;">
                                舞 台</div>
                            <div id="WorkFlowSpan" style="width: 700px; text-align: center; height: 810px;">
                                <div id="Seats" style="margin: 0 auto; position: relative; margin-top: 10px; font-size: 10px;
                                    width: 100%; text-align: center; height: 800px;">
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
            <input style="width: 500px" type="hidden" id="Rek" name="Rek" runat="server" />
            <div id="dHTMLToolTip" style="position: absolute; visibility: hidden; width: 0; height: 0;
                z-index: 1000; left: 0; top: 0">
            </div>
            <!--座位图始-->
        </div>
    </div>
    <script src="Scripts/JSTicket.js" type="text/javascript"></script>
    <script src="Scripts/LeftMenu.js" type="text/javascript"></script>
    <object classid="clsid:3F9223A8-3B4E-4C01-A1F2-DEB35CA34E68" name="FastReport" style="z-index: 105;
        width:0px; height: 0px">
    </object>
    </form>
</body>
</html>